package com.the4man.framework.model.gen;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by lenovo on 2017/12/11.
 */
public class LevelRoomTypeMapExampleBase {
    protected String orderByClause;
    protected boolean distinct;
    protected List<Criteria> oredCriteria = new ArrayList();
    protected int limitStart = -1;
    protected int rowsPerPage = -1;

    public LevelRoomTypeMapExampleBase() {
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return this.orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return this.distinct;
    }

    public List<LevelRoomTypeMapExampleBase.Criteria> getOredCriteria() {
        return this.oredCriteria;
    }

    public void or(LevelRoomTypeMapExampleBase.Criteria criteria) {
        this.oredCriteria.add(criteria);
    }

    public LevelRoomTypeMapExampleBase.Criteria or() {
        LevelRoomTypeMapExampleBase.Criteria criteria = this.createCriteriaInternal();
        this.oredCriteria.add(criteria);
        return criteria;
    }

    public LevelRoomTypeMapExampleBase.Criteria createCriteria() {
        LevelRoomTypeMapExampleBase.Criteria criteria = this.createCriteriaInternal();
        if(this.oredCriteria.size() == 0) {
            this.oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected LevelRoomTypeMapExampleBase.Criteria createCriteriaInternal() {
        LevelRoomTypeMapExampleBase.Criteria criteria = new LevelRoomTypeMapExampleBase.Criteria();
        return criteria;
    }

    public void clear() {
        this.oredCriteria.clear();
        this.orderByClause = null;
        this.distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart = limitStart;
    }

    public int getLimitStart() {
        return this.limitStart;
    }

    public void setRowsPerPage(int rowsPerPage) {
        this.rowsPerPage = rowsPerPage;
    }

    public int getRowsPerPage() {
        return this.rowsPerPage;
    }

    public static class Criteria extends LevelRoomTypeMapExampleBase.GeneratedCriteria {
        protected Criteria() {
        }
    }

    public static class Criterion {
        private String condition;
        private Object value;
        private Object secondValue;
        private boolean noValue;
        private boolean singleValue;
        private boolean betweenValue;
        private boolean listValue;
        private String typeHandler;

        public String getCondition() {
            return this.condition;
        }

        public Object getValue() {
            return this.value;
        }

        public Object getSecondValue() {
            return this.secondValue;
        }

        public boolean isNoValue() {
            return this.noValue;
        }

        public boolean isSingleValue() {
            return this.singleValue;
        }

        public boolean isBetweenValue() {
            return this.betweenValue;
        }

        public boolean isListValue() {
            return this.listValue;
        }

        public String getTypeHandler() {
            return this.typeHandler;
        }

        protected Criterion(String condition) {
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if(value instanceof List) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }

        }

        protected Criterion(String condition, Object value) {
            this(condition, value, (String)null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, (String)null);
        }
    }

    protected abstract static class GeneratedCriteria {
        protected List<LevelRoomTypeMapExampleBase.Criterion> criteria = new ArrayList();

        protected GeneratedCriteria() {
        }

        public boolean isValid() {
            return this.criteria.size() > 0;
        }

        public List<LevelRoomTypeMapExampleBase.Criterion> getAllCriteria() {
            return this.criteria;
        }

        public List<LevelRoomTypeMapExampleBase.Criterion> getCriteria() {
            return this.criteria;
        }

        protected void addCriterion(String condition) {
            if(condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            } else {
                this.criteria.add(new LevelRoomTypeMapExampleBase.Criterion(condition));
            }
        }

        protected void addCriterion(String condition, Object value, String property) {
            if(value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            } else {
                this.criteria.add(new LevelRoomTypeMapExampleBase.Criterion(condition, value));
            }
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if(value1 != null && value2 != null) {
                this.criteria.add(new LevelRoomTypeMapExampleBase.Criterion(condition, value1, value2));
            } else {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdIsNull() {
            this.addCriterion("id is null");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdIsNotNull() {
            this.addCriterion("id is not null");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdEqualTo(String value) {
            this.addCriterion("id =", value, "id");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdNotEqualTo(String value) {
            this.addCriterion("id <>", value, "id");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdGreaterThan(String value) {
            this.addCriterion("id >", value, "id");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdGreaterThanOrEqualTo(String value) {
            this.addCriterion("id >=", value, "id");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdLessThan(String value) {
            this.addCriterion("id <", value, "id");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdLessThanOrEqualTo(String value) {
            this.addCriterion("id <=", value, "id");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdLike(String value) {
            this.addCriterion("id like", value, "id");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdNotLike(String value) {
            this.addCriterion("id not like", value, "id");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdIn(List<String> values) {
            this.addCriterion("id in", values, "id");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdNotIn(List<String> values) {
            this.addCriterion("id not in", values, "id");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdBetween(String value1, String value2) {
            this.addCriterion("id between", value1, value2, "id");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andIdNotBetween(String value1, String value2) {
            this.addCriterion("id not between", value1, value2, "id");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidIsNull() {
            this.addCriterion("lid is null");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidIsNotNull() {
            this.addCriterion("lid is not null");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidEqualTo(String value) {
            this.addCriterion("lid =", value, "lid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidNotEqualTo(String value) {
            this.addCriterion("lid <>", value, "lid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidGreaterThan(String value) {
            this.addCriterion("lid >", value, "lid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidGreaterThanOrEqualTo(String value) {
            this.addCriterion("lid >=", value, "lid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidLessThan(String value) {
            this.addCriterion("lid <", value, "lid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidLessThanOrEqualTo(String value) {
            this.addCriterion("lid <=", value, "lid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidLike(String value) {
            this.addCriterion("lid like", value, "lid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidNotLike(String value) {
            this.addCriterion("lid not like", value, "lid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidIn(List<String> values) {
            this.addCriterion("lid in", values, "lid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidNotIn(List<String> values) {
            this.addCriterion("lid not in", values, "lid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidBetween(String value1, String value2) {
            this.addCriterion("lid between", value1, value2, "lid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andLidNotBetween(String value1, String value2) {
            this.addCriterion("lid not between", value1, value2, "lid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidIsNull() {
            this.addCriterion("rtid is null");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidIsNotNull() {
            this.addCriterion("rtid is not null");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidEqualTo(String value) {
            this.addCriterion("rtid =", value, "rtid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidNotEqualTo(String value) {
            this.addCriterion("rtid <>", value, "rtid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidGreaterThan(String value) {
            this.addCriterion("rtid >", value, "rtid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidGreaterThanOrEqualTo(String value) {
            this.addCriterion("rtid >=", value, "rtid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidLessThan(String value) {
            this.addCriterion("rtid <", value, "rtid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidLessThanOrEqualTo(String value) {
            this.addCriterion("rtid <=", value, "rtid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidLike(String value) {
            this.addCriterion("rtid like", value, "rtid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidNotLike(String value) {
            this.addCriterion("rtid not like", value, "rtid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidIn(List<String> values) {
            this.addCriterion("rtid in", values, "rtid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidNotIn(List<String> values) {
            this.addCriterion("rtid not in", values, "rtid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidBetween(String value1, String value2) {
            this.addCriterion("rtid between", value1, value2, "rtid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andRtidNotBetween(String value1, String value2) {
            this.addCriterion("rtid not between", value1, value2, "rtid");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andSortIsNull() {
            this.addCriterion("sort is null");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andSortIsNotNull() {
            this.addCriterion("sort is not null");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andSortEqualTo(Integer value) {
            this.addCriterion("sort =", value, "sort");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andSortNotEqualTo(Integer value) {
            this.addCriterion("sort <>", value, "sort");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andSortGreaterThan(Integer value) {
            this.addCriterion("sort >", value, "sort");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andSortGreaterThanOrEqualTo(Integer value) {
            this.addCriterion("sort >=", value, "sort");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andSortLessThan(Integer value) {
            this.addCriterion("sort <", value, "sort");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andSortLessThanOrEqualTo(Integer value) {
            this.addCriterion("sort <=", value, "sort");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andSortIn(List<Integer> values) {
            this.addCriterion("sort in", values, "sort");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andSortNotIn(List<Integer> values) {
            this.addCriterion("sort not in", values, "sort");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andSortBetween(Integer value1, Integer value2) {
            this.addCriterion("sort between", value1, value2, "sort");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andSortNotBetween(Integer value1, Integer value2) {
            this.addCriterion("sort not between", value1, value2, "sort");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateTimeIsNull() {
            this.addCriterion("create_time is null");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateTimeIsNotNull() {
            this.addCriterion("create_time is not null");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateTimeEqualTo(Date value) {
            this.addCriterion("create_time =", value, "createTime");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateTimeNotEqualTo(Date value) {
            this.addCriterion("create_time <>", value, "createTime");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateTimeGreaterThan(Date value) {
            this.addCriterion("create_time >", value, "createTime");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            this.addCriterion("create_time >=", value, "createTime");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateTimeLessThan(Date value) {
            this.addCriterion("create_time <", value, "createTime");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            this.addCriterion("create_time <=", value, "createTime");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateTimeIn(List<Date> values) {
            this.addCriterion("create_time in", values, "createTime");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateTimeNotIn(List<Date> values) {
            this.addCriterion("create_time not in", values, "createTime");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateTimeBetween(Date value1, Date value2) {
            this.addCriterion("create_time between", value1, value2, "createTime");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            this.addCriterion("create_time not between", value1, value2, "createTime");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserIsNull() {
            this.addCriterion("create_user is null");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserIsNotNull() {
            this.addCriterion("create_user is not null");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserEqualTo(String value) {
            this.addCriterion("create_user =", value, "createUser");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserNotEqualTo(String value) {
            this.addCriterion("create_user <>", value, "createUser");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserGreaterThan(String value) {
            this.addCriterion("create_user >", value, "createUser");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            this.addCriterion("create_user >=", value, "createUser");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserLessThan(String value) {
            this.addCriterion("create_user <", value, "createUser");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserLessThanOrEqualTo(String value) {
            this.addCriterion("create_user <=", value, "createUser");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserLike(String value) {
            this.addCriterion("create_user like", value, "createUser");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserNotLike(String value) {
            this.addCriterion("create_user not like", value, "createUser");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserIn(List<String> values) {
            this.addCriterion("create_user in", values, "createUser");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserNotIn(List<String> values) {
            this.addCriterion("create_user not in", values, "createUser");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserBetween(String value1, String value2) {
            this.addCriterion("create_user between", value1, value2, "createUser");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }

        public LevelRoomTypeMapExampleBase.Criteria andCreateUserNotBetween(String value1, String value2) {
            this.addCriterion("create_user not between", value1, value2, "createUser");
            return (LevelRoomTypeMapExampleBase.Criteria)this;
        }
    }
}
